package com.twu.biblioteca.Models;

/**
 * Created with IntelliJ IDEA.
 * User: spacetime
 * Date: 8/16/13
 * Time: 7:09 PM
 */
public class User {
    private String username;
    private String password;
    private String emailID;
    private String phoneNumber;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public User(String username, String password, String emailID, String phoneNumber) {
        this.username = username;
        this.password = password;
        this.emailID = emailID;
        this.phoneNumber = phoneNumber;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getEmailID() {
        return emailID;
    }


    public boolean authenticate(String username, String password) {
        return this.username.equals(username) && this.password.equals(password);
    }
}
